package com.andy.eqm.server.distruptor.base;

import java.io.Serializable;

import com.andy.eqm.server.socket.MySocketSession;
import com.andy.eqm.server.socket.codec.DataWrap;

/**
 * 生产、消费者之间传递消息用的event
 * @author cuiwm
 *
 */
public class BaseEvent implements Serializable {

	private static final long serialVersionUID = 1L;
	
	private int action;
	
	private MySocketSession session;
	
	private DataWrap dataWrap;

	public BaseEvent(MySocketSession session,int action,DataWrap dataWrap) {
        this.setSession(session);
        this.setAction(action);
        this.setDataWrap(dataWrap);
    }

    public BaseEvent() {
    }

	public MySocketSession getSession() {
		return session;
	}

	public void setSession(MySocketSession session) {
		this.session = session;
	}

	public int getAction() {
		return action;
	}

	public void setAction(int action) {
		this.action = action;
	}

	public DataWrap getDataWrap() {
		return dataWrap;
	}

	public void setDataWrap(DataWrap dataWrap) {
		this.dataWrap = dataWrap;
	}
    
    

}
